package mythread.demo001;

public class MyThread16Test extends Thread {

    public static void main(String[] args) {
        //yield 放弃当前资源：不确定什么时候
        System.out.println("MyThread16_1 - "+ (Thread.currentThread().getPriority()) +"");
        //优先级可以继承
        //5 55 5
        //Thread.currentThread().setPriority(6);//5 6 6 6
        System.out.println("MyThread16_2 - "+ (Thread.currentThread().getPriority()) +"");

        MyThread16A myThread = new MyThread16A();
        myThread.start();


    }
}
